package baiqitun.stupro.subject.entity;

import baiqitun.stupro.common.entity.Entity;
import baiqitun.stupro.common.validate.group.SaveGroup;
import baiqitun.stupro.common.validate.group.UpdateGroup;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 导师信息表
 * </p>
 *
 * @author kedaji
 * @since 2020-04-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("stupro_tutor_info")
public class SysTutorInfo extends Entity {

    private static final long serialVersionUID=1L;

    @NotBlank(message = "用户id不能为空", groups = {SaveGroup.class, UpdateGroup.class})
    @ApiModelProperty("用户id")
    private String userId;

    @NotBlank(message = "科目id不能为空", groups = {SaveGroup.class, UpdateGroup.class})
    @ApiModelProperty("科目id")
    private String subjectId;

    @NotBlank(message = "真实姓名不能为空", groups = {SaveGroup.class, UpdateGroup.class})
    @ApiModelProperty("真实姓名")
    private String realName;

    @NotBlank(message = "职称不能为空", groups = {SaveGroup.class, UpdateGroup.class})
    @ApiModelProperty("职称")
    private String title;

    @NotBlank(message = "教学内容不能为空", groups = {SaveGroup.class, UpdateGroup.class})
    @ApiModelProperty("教学课程")
    private String teach;

    @NotBlank(message = "研究内容不能为空", groups = {SaveGroup.class, UpdateGroup.class})
    @ApiModelProperty("研究内容")
    private String research;
}
